<?php slot('bannerPreviewWidget')?>

<?php
	$link = $gallery ? get_component('linker','articleLinkBuilder', array('node' => $gallery)) : '#';
?>


<?php if(has_slot('galleryBlockWidget') || has_slot('newsBlockWidget')): ?>
	<?php include_partial('newestBannerWidget/smallbox', array('bannerGroup' => $bannerGroup, 'banner' => $banner, 'link' => $link,'section' => $section, 'gallery' => $gallery)) ?>
<?php else: ?>
	<?php include_partial('newestBannerWidget/bigbox', array('bannerGroup' => $bannerGroup, 'banner' => $banner, 'link' => $link,'section' => $section,'gallery' => $gallery)) ?>
<?php endif; ?>

<?php end_slot()?>
